package org.dochandler.service.domain.mission;

public class Coordinate {
	private Double hours;
	private Double minutes;
	private Double seconds;
	
	public Coordinate() { }
	
	public Coordinate(Double hours, Double minutes, Double seconds) {
		this.hours = hours;
		this.minutes = minutes;
		this.seconds = seconds;
	}
	
	/**
	 * Compare coordinates
	 * @param c
	 * @return
	 */
	public boolean compareCoordinates(Coordinate c) {
		if (this.getHours() == c.getHours() &&
			this.getMinutes() == c.getMinutes() &&
			this.getSeconds() == c.getSeconds() ) {
			return true;
		}  else {
			return false;
		}
	}
	
	/*
	 * SETTERS AND GETTERS
	 */
	
	public Double getHours() {
		return hours;
	}
	public void setHours(Double hours) {
		this.hours = hours;
	}
	public Double getMinutes() {
		return minutes;
	}
	public void setMinutes(Double minutes) {
		this.minutes = minutes;
	}
	public Double getSeconds() {
		return seconds;
	}
	public void setSeconds(Double seconds) {
		this.seconds = seconds;
	}
}